package com.party.mobile.biz.circle;

import com.party.mobile.biz.file.FileBizService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 圈子业务处理
 *
 * @author yifeng
 * @date 2018/8/31 0031
 * @time 上午 10:38
 */
@Service
public class CircleBizNewService {
    @Autowired
    private FileBizService fileBizService;

    Logger logger = LoggerFactory.getLogger(getClass());

    public void uploadQrCode(String memberId, String circleId) {
        try {
            String filePath = fileBizService.getUploadCIPath(memberId, "circle");
            String qrContent = "circle/circle_detail.html?id=" + circleId;
            fileBizService.uploadCloudOut(circleId, filePath, qrContent, memberId);
        } catch (Exception e) {
            logger.error("生成圈子二维码异常", e);
        }
    }
}
